﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PCI_Device
{
    public enum PCI_ERROR_CODES
    {
        WD_USBD_STATUS_ERROR = int.MinValue,
        WD_USBD_STATUS_NO_MEMORY = -2147483392,
        WD_USBD_STATUS_INVALID_URB_FUNCTION = -2147483136,
        WD_USBD_STATUS_INVALID_PARAMETER = -2147482880,
        WD_USBD_STATUS_ERROR_BUSY = -2147482624,
        WD_USBD_STATUS_REQUEST_FAILED = -2147482368,
        WD_USBD_STATUS_INVALID_PIPE_HANDLE = -2147482112,
        WD_USBD_STATUS_NO_BANDWIDTH = -2147481856,
        WD_USBD_STATUS_INTERNAL_HC_ERROR = -2147481600,
        WD_USBD_STATUS_ERROR_SHORT_TRANSFER = -2147481344,
        WD_USBD_STATUS_HALTED = -1073741824,
        WD_USBD_STATUS_CRC = -1073741823,
        WD_USBD_STATUS_BTSTUFF = -1073741822,
        WD_USBD_STATUS_DATA_TOGGLE_MISMATCH = -1073741821,
        WD_USBD_STATUS_STALL_PID = -1073741820,
        WD_USBD_STATUS_DEV_NOT_RESPONDING = -1073741819,
        WD_USBD_STATUS_PID_CHECK_FAILURE = -1073741818,
        WD_USBD_STATUS_UNEXPECTED_PID = -1073741817,
        WD_USBD_STATUS_DATA_OVERRUN = -1073741816,
        WD_USBD_STATUS_DATA_UNDERRUN = -1073741815,
        WD_USBD_STATUS_RESERVED1 = -1073741814,
        WD_USBD_STATUS_RESERVED2 = -1073741813,
        WD_USBD_STATUS_BUFFER_OVERRUN = -1073741812,
        WD_USBD_STATUS_BUFFER_UNDERRUN = -1073741811,
        WD_USBD_STATUS_NOT_ACCESSED = -1073741809,
        WD_USBD_STATUS_FIFO = -1073741808,
        WD_USBD_STATUS_XACT_ERROR = -1073741807,
        WD_USBD_STATUS_BABBLE_DETECTED = -1073741806,
        WD_USBD_STATUS_DATA_BUFFER_ERROR = -1073741805,
        WD_USBD_STATUS_ENDPOINT_HALTED = -1073741776,
        WD_USBD_STATUS_BAD_START_FRAME = -1073739264,
        WD_USBD_STATUS_ISOCH_REQUEST_FAILED = -1073739008,
        WD_USBD_STATUS_FRAME_CONTROL_OWNED = -1073738752,
        WD_USBD_STATUS_FRAME_CONTROL_NOT_OWNED = -1073738496,
        WD_USBD_STATUS_NOT_SUPPORTED = -1073738240,
        WD_USBD_STATUS_INAVLID_CONFIGURATION_DESCRIPTOR = -1073737984,
        WD_USBD_STATUS_INSUFFICIENT_RESOURCES = -1073737728,
        WD_USBD_STATUS_SET_CONFIG_FAILED = -1073733632,
        WD_USBD_STATUS_BUFFER_TOO_SMALL = -1073729536,
        WD_USBD_STATUS_INTERFACE_NOT_FOUND = -1073725440,
        WD_USBD_STATUS_INAVLID_PIPE_FLAGS = -1073721344,
        WD_USBD_STATUS_TIMEOUT = -1073717248,
        WD_USBD_STATUS_DEVICE_GONE = -1073713152,
        WD_USBD_STATUS_STATUS_NOT_MAPPED = -1073709056,
        WD_USBD_STATUS_CANCELED = -1073676288,
        WD_USBD_STATUS_ISO_NOT_ACCESSED_BY_HW = -1073610752,
        WD_USBD_STATUS_ISO_TD_ERROR = -1073545216,
        WD_USBD_STATUS_ISO_NA_LATE_USBPORT = -1073479680,
        WD_USBD_STATUS_ISO_NOT_ACCESSED_LATE = -1073414144,
        WD_STATUS_INVALID_WD_HANDLE = -1,
        WD_USBD_STATUS_SUCCESS = 0,
        WD_STATUS_SUCCESS = 0,
        WD_WINDRIVER_STATUS_ERROR = 536870912,
        WD_INVALID_HANDLE = 536870913,
        WD_INVALID_PIPE_NUMBER = 536870914,
        WD_READ_WRITE_CONFLICT = 536870915,
        WD_ZERO_PACKET_SIZE = 536870916,
        WD_INSUFFICIENT_RESOURCES = 536870917,
        WD_UNKNOWN_PIPE_TYPE = 536870918,
        WD_SYSTEM_INTERNAL_ERROR = 536870919,
        WD_DATA_MISMATCH = 536870920,
        WD_NO_LICENSE = 536870921,
        WD_NOT_IMPLEMENTED = 536870922,
        WD_KERPLUG_FAILURE = 536870923,
        WD_FAILED_ENABLING_INTERRUPT = 536870924,
        WD_INTERRUPT_NOT_ENABLED = 536870925,
        WD_RESOURCE_OVERLAP = 536870926,
        WD_DEVICE_NOT_FOUND = 536870927,
        WD_WRONG_UNIQUE_ID = 536870928,
        WD_OPERATION_ALREADY_DONE = 536870929,
        WD_INTERFACE_DESCRIPTOR_ERROR = 536870930,
        WD_SET_CONFIGURATION_FAILED = 536870931,
        WD_CANT_OBTAIN_PDO = 536870932,
        WD_TIME_OUT_EXPIRED = 536870933,
        WD_IRP_CANCELED = 536870934,
        WD_FAILED_USER_MAPPING = 536870935,
        WD_FAILED_KERNEL_MAPPING = 536870936,
        WD_NO_RESOURCES_ON_DEVICE = 536870937,
        WD_NO_EVENTS = 536870938,
        WD_INVALID_PARAMETER = 536870939,
        WD_INCORRECT_VERSION = 536870940,
        WD_TRY_AGAIN = 536870941,
        WD_WINDRIVER_NOT_FOUND = 536870942,
        WD_INVALID_IOCTL = 536870943,
        WD_OPERATION_FAILED = 536870944,
        WD_INVALID_32BIT_APP = 536870945,
        WD_TOO_MANY_HANDLES = 536870946,
        WD_NO_DEVICE_OBJECT = 536870947,
        WD_USBD_STATUS_PENDING = 1073741824
    }
}
